#include "loadLibrary.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
    HMODULE library = DLibLoad("plugintest.plug");
    if(!library)
    {
        printf("ERROR: Could not load the plugin\n");
        exit(-1);
    }

    void (*func)(void)  = DLibGetFunction(library, "hello");
    if(!func)
    {
        printf("ERROR: The plugin does not have that function defined\n");
        exit(-1);
    }
    (*func)();
   
    DLibFree(library);
    
    return 0;
}
